]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
StDrawingArea: fix texture drawing
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 19 Dec 2012 14:17:57 +0000 (15:17 +0100)
committerAllan Day <allanpday@gmail.com>
Wed, 19 Dec 2012 15:45:18 +0000 (15:45 +0000)
cogl_rectangle() wants the four rectangle corners, not the size.

https://bugzilla.gnome.org/show_bug.cgi?id=641745

src/st/st-drawing-area.c

index daa7e25176de74980786b71d80b30d3cbe7f9464..f044cbf310e0dcbfa19b38a6e518a520b6189bbc 100644 (file)
@@ -152,7 +152,7 @@ st_drawing_area_paint (ClutterActor *self)
 
       cogl_set_source (priv->material);
       cogl_rectangle_with_texture_coords (content_box.x1, content_box.y1,
-                                          width, height,
+                                          content_box.x2, content_box.y2,
                                           0.0f, 0.0f, 1.0f, 1.0f);
     }
 }